export const isDEV = import.meta.env.MODE === 'development' //是否是开发环境
// 判断当前地址
const url = window.location.href
// 是否包含 'localhost' 或者 '192.168'
export const isLocal = url.includes('localhost') || url.includes('192.168')

export const MODEL_PATH = isLocal ? '/da-yu-water/models/' : import.meta.env.VITE_APP_MODEL_PATH
export const PUBLIC_PATH =  isLocal ? '/da-yu-water/' : import.meta.env.VITE_APP_PUBLIC_PATH
export const startFrom = {
  tx: -62.311145,
  ty: -81.488211,
  tz: 37.525106,
  px: 296.35199125092726,
  py: 363.6770455331016,
  pz: -330.6970988287071
}
// /*target: {"x":-121.1387793831311,"y":-37.607756264325374,"z":-10.854121580137136}
// index.vue:236 position: {"x":140.61594242463107,"y":100.85822155978725,"z":-118.37331141683293}*/
export const startTo = {
  tx: -121.1387793831311,
  ty: -37.607756264325374,
  tz: -10.854121580137136,
  px: 140.61594242463107,
  py: 100.85822155978725,
  pz: -118.37331141683293
}
